package weiy.top.modules.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import weiy.top.modules.product.entity.PmsProductAttrValue;
import weiy.top.modules.product.mapper.PmsProductAttrValueMapper;
import weiy.top.modules.product.service.IPmsProductAttrValueService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: pms_product_attr_value
 * @Author: weihancheng
 * @Date:   2021-11-24
 * @Version: V1.0
 */
@Service
public class PmsProductAttrValueServiceImpl extends ServiceImpl<PmsProductAttrValueMapper, PmsProductAttrValue> implements IPmsProductAttrValueService {

    @Override
    public void saveProductAttr(List<PmsProductAttrValue> productAttrValueList) {

    }

    @Override
    public List<PmsProductAttrValue> listBySpuId(String spuId) {
        LambdaQueryWrapper<PmsProductAttrValue> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(PmsProductAttrValue::getSpuId, spuId);
        return list(queryWrapper);
    }

    @Override
    public List<String> selectSearchAttrIds(List<String> attrIds) {
        return null;
    }
}
